-
-
Notifications
You must be signed in to change notification settings - Fork 537
WIP: feat: add dedicated backup role #919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@pat-s Why did you move the tasks of creating backup buckets to a separate role, this "backup" role name is not quite suitable since this is done by the pgbackrest or wal-g roles. What about this approach? #916 (comment) (use conditions instead of moving tasks to a separate role) Or we could rename it to "bucket". And execute auto_conf tasks if the backup_provider and pgbackrest_auto_conf / wal_g_auto_conf variables are filled in. |
It made sense to me to bundle everything related to backups into this dedicated role. I don't see why the backup buckets should be created in another role. Feel free to re-arrange, though!
Saw it in the process but didn't like it so much. Also see the previous comment here. "backup" is an essential task which imo deserves its own role. Especially as there are multiple tools that could be used to execute the backup, it made sense to me to bundle all tool-agnostic actions into this role. I currently have a working state using the structure for
The role you mean? I think "backup" is much more generic, especially if there should be other means of taking backups than s3. Given that s3 is also the protocol name and used as a general term these days, keeping it as the "type" identifier for bucket/s3 backups sounds reasonable. |
Then I think the current roles such as pgbackrest and wal-g should become tasks in the |
@pat-s Do you have time to do this? |
|
Not right now. Feel free to continue. |
|
@vitabaks Are you planning to work on this in the near future or include it at all? An S3-backup with a free provider choice is the last part right now which I am missing before I can move back to the upstream module of yours again. I don't really care as a user if this is a dedicated role or split across existing roles. In the end, I want to be able to set something like this in my config to use S3 backups via pgbackrest_repo_type: 's3'
s3_backup_provider: <cloud provider>
<cloud_provider>_object_storage_XYZ: |
|
@pat-s Regarding the new “backup” role: it lets you provision your own servers (e.g. via Terraform) while Autobase handles software and optionally creates a single cloud resource like an S3 bucket. However, if you’re already provisioning servers, why not provision the bucket too and configure pgBackRest using our docs? Currently we support two modes:
If you’d like a hybrid mode (BYOM + S3 Bucket), we can do it. I’ll take a closer look shortly, just after we release version 2.3.0. |
|
I can't quite follow. What does this have to do with provisioning servers and what Autobase is doing? I use BYOM, yes. And what I essentially need is #979. I want to back up to Hetzner S3 via
Did I overlook something and this is already possible? Looking at the code, I had the impression it isn't and I had to apply the mentioned patches. |
It possible :) |
|
Ah, apologizes then! Didn't see that. I only checked the code and tried to patch it to make it work with the options in Anyhow, a dedicated "backup" role might be beneficial WRT to overall organization etc ;) But no pressure then (anymore) from my side 😄️ |
fix #916
cloud-resourcestobackuprolebackuprole tasks whenbackup_provideris setbackuprole whenpgbackrest_installorwal_g_installaretrue